Optimal. Leaf size=39 \[ \frac{1}{2} x^2 \left (a+b \tan ^{-1}\left (\frac{c}{x}\right )\right )-\frac{1}{2} b c^2 \tan ^{-1}\left (\frac{x}{c}\right )+\frac{b c x}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0173373, antiderivative size = 39, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {5033, 193, 321, 203} \[ \frac{1}{2} x^2 \left (a+b \tan ^{-1}\left (\frac{c}{x}\right )\right )-\frac{1}{2} b c^2 \tan ^{-1}\left (\frac{x}{c}\right )+\frac{b c x}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5033
Rule 193
Rule 321
Rule 203
Rubi steps
\begin{align*} \int x \left (a+b \tan ^{-1}\left (\frac{c}{x}\right )\right ) \, dx &=\frac{1}{2} x^2 \left (a+b \tan ^{-1}\left (\frac{c}{x}\right )\right )+\frac{1}{2} (b c) \int \frac{1}{1+\frac{c^2}{x^2}} \, dx\\ &=\frac{1}{2} x^2 \left (a+b \tan ^{-1}\left (\frac{c}{x}\right )\right )+\frac{1}{2} (b c) \int \frac{x^2}{c^2+x^2} \, dx\\ &=\frac{b c x}{2}+\frac{1}{2} x^2 \left (a+b \tan ^{-1}\left (\frac{c}{x}\right )\right )-\frac{1}{2} \left (b c^3\right ) \int \frac{1}{c^2+x^2} \, dx\\ &=\frac{b c x}{2}+\frac{1}{2} x^2 \left (a+b \tan ^{-1}\left (\frac{c}{x}\right )\right )-\frac{1}{2} b c^2 \tan ^{-1}\left (\frac{x}{c}\right )\\ \end{align*}
Mathematica [A] time = 0.0080284, size = 44, normalized size = 1.13 \[ \frac{a x^2}{2}+\frac{1}{2} b c^2 \tan ^{-1}\left (\frac{c}{x}\right )+\frac{1}{2} b x^2 \tan ^{-1}\left (\frac{c}{x}\right )+\frac{b c x}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.03, size = 37, normalized size = 1. \begin{align*}{\frac{a{x}^{2}}{2}}+{\frac{b{x}^{2}}{2}\arctan \left ({\frac{c}{x}} \right ) }-{\frac{b{c}^{2}}{2}\arctan \left ({\frac{x}{c}} \right ) }+{\frac{xbc}{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.48726, size = 49, normalized size = 1.26 \begin{align*} \frac{1}{2} \, a x^{2} + \frac{1}{2} \,{\left (x^{2} \arctan \left (\frac{c}{x}\right ) -{\left (c \arctan \left (\frac{x}{c}\right ) - x\right )} c\right )} b \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.33068, size = 77, normalized size = 1.97 \begin{align*} \frac{1}{2} \, b c x + \frac{1}{2} \, a x^{2} + \frac{1}{2} \,{\left (b c^{2} + b x^{2}\right )} \arctan \left (\frac{c}{x}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.384635, size = 36, normalized size = 0.92 \begin{align*} \frac{a x^{2}}{2} + \frac{b c^{2} \operatorname{atan}{\left (\frac{c}{x} \right )}}{2} + \frac{b c x}{2} + \frac{b x^{2} \operatorname{atan}{\left (\frac{c}{x} \right )}}{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1642, size = 69, normalized size = 1.77 \begin{align*} \frac{1}{4} \, b c^{2} i \log \left (i x + c\right ) - \frac{1}{4} \, b c^{2} i \log \left (-i x + c\right ) + \frac{1}{2} \, b x^{2} \arctan \left (\frac{c}{x}\right ) + \frac{1}{2} \, b c x + \frac{1}{2} \, a x^{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]